<?php

/**
 * 首页
 * @copyright (c) 2013, Mr.Wang
 * @author Mr.Wang <281762391@qq.com>
 */
class ArticleAction extends HomeAction {
    
    public function _initialize() {
        parent::_initialize();
        $this->seo('次级页面 ');
    }

    function _filter(&$map) {
        $map['status'] = 1;
    }

    function view() {
        $name  = $this->getActionName();
        $model = M($name);
        $id    = $_REQUEST [$model->getPk()];
        if (!$id) {
            $id = $_REQUEST ['id'];
        }
        $vo = $model->find($id);
        $this->seo($vo['title']);
        
        //推荐信息
        $roundDZ    = _roundDazhe();
        $this->assign('rounddz', $roundDZ);
        $this->assign('page', $vo);
        $this->display('show');
    }

}
